<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" xmlns:oso="http://osoftware.com/facelets" template="/WEB-INF/templates/mainLayout.xhtml">

	<ui:define name="pageContent">
		<h:form id="editForm">
			<p:focus context="editForm"/>
			<p:panel header="#{resourceBundle['panel.edit']}">
				<p:panelGrid columns="3" style="width:100%;">
					<ui:insert name="editFields" />
					<h:panelGroup>
						<p:commandButton value="#{resourceBundle['btn.save']}" action="confirm" update="@form" inmediate="false" process="editForm" />

						<p:commandButton value="#{resourceBundle['btn.cancel']}" action="cancel" immediate="true" />
					</h:panelGroup>
				</p:panelGrid>
			</p:panel>
			<ui:insert name="insideForm" />
		</h:form>
		<ui:insert name="afterForm" />
	</ui:define>
</ui:composition>